<?php

// 观察者
class ObserverNba extends Observer
{
    protected $name;
    protected $subject;
    
    public function update()
    {
        fwrite(STDOUT, $this->name . ' ' . $this->subject->getAction() . ',关闭NBA直播，继续工作。' . "\n");
    }
}